package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Setmeal;
import com.itheima.reggie.domain.SetmealDish;

import java.util.List;

public interface SetmealService {
    //分页查询
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);

    //新增套餐
    void save(Setmeal setmeal);

    //批量删除
    void delete(Long[] ids);

    //回显套餐
    Setmeal findById(Long id);

    //修改套餐
    void update(Setmeal setmeal);

    //批量修改套餐状态
    void updateStatus(Integer status, Long[] ids);

    //app端显示套餐信息
    List<Setmeal> findBycategoryId(Long categoryId, Integer status);

    List<SetmealDish> findBySetmealId(Long id);
}
